﻿using System;

using NUnit.Framework;
using UniversalApproach.Expands;

namespace NUnitTestProject1
{
    [TestFixture]
    public class ExpandsTest
    {
        [Test]
        public void DateTimeConvertTest()
        {
            var str = "10.10.2022 12:54";

            var time = str.ConvertToDateTimeByUserFormat("dd.MM.yyyy HH:mm");

            Assert.IsTrue(time != DateTime.MinValue);
        }
    }
}